# -*- coding:utf-8 -*-

from server.action.batchBase import batchBase
from server.util import sqlBuild
import uuid


class kill(batchBase):  # 断开socket
    def action(self, data, d):
        baId = data[0]

        data = "警告：基站[%s]，失去链接，请及时处理！" % baId
        self.re.publish('faultMessage', data)  # send state to the fan service, use redis's pubsub() method

        d.callback((3, ("kill"), baId))
